package zhr;

public class ex2_7 {
    public enum Color {
        RED, BLUE, BLACK, YELLOW, GREEN
    }

    public static void main(String[] args) {
        Color c1=Color.RED;
        System.out.println(c1);
        Color c2=Color.valueOf("BLACK");
        System.out.println(c2);
    }
}
